//
//  CYCompanyUserModel.m
//  CreditAddressBook
//
//  Created by LE on 15/12/15.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "CYCompanyUserModel.h"
#import "MJExtension.h"

@implementation CYCompanyUserModel
MJExtensionCodingImplementation

/**
 *  这个数组中的属性名将会被忽略：不进行字典和模型的转换
 */
+ (NSArray *)ignoredPropertyNames {
    return @[@"examineStatusName"];
}
/**
 *  这个数组中的属性名将会被忽略：不进行归档
 */
+ (NSArray *)ignoredCodingPropertyNames {
    return @[@"examineStatusName"];
}

- (NSString *)examineStatusName {
    if (self.examineStatus.intValue == 1) {
        return @"审核中";
    } else if (self.examineStatus.intValue == -1) {
        return @"审核不通过";
    } else if (self.examineStatus.intValue == 2) {
        return @"审核通过";
    } else if (self.examineStatus.intValue == 0) {
        return @"请完善资料并提交审核";
    }
    return nil;
}
@end
